<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<jsp:include page="../common/cts.jsp"></jsp:include>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<div>

	<s:if test="#request.workResult!=null && #request.workResult.size()>0">
		<s:iterator value="#request.workResult">
		<div class="single_work_bg" style="border: 0px solid red;" onmouseout="hideFloatDiv('<s:property value="id"/>')" onmouseover="showFloatDiv('<s:property value="id"/>');">
			<!-- 标签 -->
			<div style="text-align: right;padding-right: 8px;width: 298px;height:13px;padding-top: 12px;border:0px solid green;">
				<s:iterator value="option15" status="sta">
					<div title="<s:property value="name"/>" style="cursor: pointer;background:url('${pageContext.request.contextPath}/cts/images/detail_tag<s:property value="option1"/>.png') center center no-repeat;width:40px;float:right;color:#fff;text-align:center;font-size:90%;line-hight:13px;height:13px;" class="nowrap"><s:property value="name"/></div>
					<s:if test="#sta.index!=(option15.size()-1)">
						<div style="height:8px;float:right;width: 4px;"></div>
					</s:if>
				</s:iterator>
		  	</div>
			<!-- 第一行 -->
		  	<div style="text-align: left;padding-left: 24px;height: 20px;line-height: 20px;width: 290px;border: 0px solid green;">
		  		<div style="font-weight: bold;font-family: Arial;color:#585858;float: left;"><s:property value="workCode"/>&nbsp;-&nbsp;</div>
		  		<s:if test="workingStatus==1">
			  		<div title="计划中" style="background: url('${pageContext.request.contextPath}/cts/images/plan.png') center right no-repeat; float:left;height: 20px;border:0px solid red;cursor: pointer;padding-right:16px;">
			  			计划中
			  		</div>
		  		</s:if>
		  		<s:if test="workingStatus==2">
			  		<div title="进行中" style="background: url('${pageContext.request.contextPath}/cts/images/doing.png') center right no-repeat; float:left;height: 20px;cursor: pointer;padding-right:16px;">
			  			进行中
			  		</div>
		  		</s:if>
		  		<s:if test="workingStatus==3">
			  		<div title="已完成" style="background: url('${pageContext.request.contextPath}/cts/images/finish.png') center right no-repeat; float:left;height: 20px;cursor: pointer;padding-right:16px;">
			  			已完成
			  		</div>
		  		</s:if>
		  		<s:if test="workingStatus==4">
			  		<div title="暂停" style="background: url('${pageContext.request.contextPath}/cts/images/stop.png') center right no-repeat; float:left;height: 20px;cursor: pointer;padding-right:16px;">
			  			暂停
			  		</div>
		  		</s:if>
		  		<s:if test="workingStatus==5">
			  		<div title="已归档" style="background: url('${pageContext.request.contextPath}/cts/images/keep_on_file.png') center right no-repeat; float:left;height: 20px;cursor: pointer;padding-right:16px;">
			  			已归档
			  		</div>
		  		</s:if>
		  		
		  	</div>
		  	
		  	<!-- 第二行 -->
		  	<div style="width: 310px;_width: 305px;height:25px;line-height: 25px;border: 0px solid red;">
		  		<s:if test="item.type==3">
			  		<div style="float: left;width: 60px;text-align: left;padding-left: 24px;font-size: 16px;font-weight: bold;color: #585858;font-family: Arial;font-style:italic;" class="nowrap" title="<s:property value="item.name_en"/>"><s:property value="item.name_en"/></div>
			  		<div style="float: right;text-align: right;width: 202px;padding-right: 12px;" class="nowrap">
			  			<s:if test="option16 !=null && option17!=null">
				  			<font style="font-size: 14px;">&nbsp;<s:property value="option2"/></font>
			  			</s:if>
			  		</div>
		  		</s:if>
		  		<s:else>
		  		<div style="float: left;width: 152px;text-align: left;padding-left: 24px;font-size: 16px;font-weight: bold;color: #585858;font-family: Arial;font-style:italic;" class="nowrap" title="<s:property value="item.name_en"/>"><s:property value="item.name_en"/></div>
			  		<div style="float: right;text-align: right;width: 110px;padding-right: 12px;" class="nowrap">
			  			<s:if test="option16 !=null && option17!=null">
				  			<font style="font-size: 14px;">&nbsp;<s:property value="option2"/></font>
			  			</s:if>
			  		</div>
		  		</s:else>
		  	</div>
		  	
		  	<!-- 第三行 -->
		  	<div style="width: 315px;_width: 305px;border: 0px solid red;height: 226px;">
		  		<s:if test="item.type==1 || item.type==2 || item.type==3 || item.type==5">
		  			<!-- 左边 -->
		  			<div style="float: left;text-align: left;padding-left: 24px;width: 140px;padding-top: 8px;border:0px solid red;">
		  				<div class="single_title" style="border:0px solid red;">
		  					出发地&nbsp;
		  					<s:if test="option16 !=null">
		  						<s:if test="option3==1">ETD</s:if>
		  						<s:if test="item.type==3">
		  							<s:date format="MM/dd hh:mm" name="option16"/>
		  						</s:if>
		  						<s:else>
		  							<s:date format="MM/dd" name="option16"/>
		  						</s:else>
		  					</s:if>
		  				</div>
		  				<div style="height: 35px;padding-top: 4px;font-size:90%;-webkit-text-size-adjust:none;">
		  					<s:property value="pointORG.fullname"/>
		  				</div>
		  				<div class="single_title" style="border:0px solid red;">
		  					目的地&nbsp;
		  					<s:if test="option17 !=null">
		  						<s:if test="option4==1">ETA</s:if>
		  						<s:if test="item.type==3">
		  							<s:date format="MM/dd hh:mm" name="option17"/>
		  						</s:if>
		  						<s:else>
		  							<s:date format="MM/dd" name="option17"/>
		  						</s:else>
		  					</s:if>
		  				</div>
		  				<div style="height: 37px;padding-top: 4px;font-size:90%;-webkit-text-size-adjust:none;">
		  					<s:property value="pointDES.fullname"/>
		  				</div>
		  				
		  				<div class="single_title" style="padding-top: 4px;">
		  					应收款
		  				</div>
		  				<div class="work_fees">
		  					<s:iterator value="option11" status="sta">
		  						<div>
			  						<s:if test="#sta.index<4">
				  						<span><s:property value="fee.name_zh"/></span>
				  						
				  						<span style="font-family: Arial;"><s:property value="currency.type"/></span>
				  						<span style="font-family: Arial;"><s:property value="money"/></span>
			  						</s:if>
		  						</div>
		  						<s:if test="option11.size()>4 && #sta.index==4">
		  							<div>......</div>
		  						</s:if>
		  						
		  					</s:iterator>
		  				</div>
		  			</div>
		  			<!-- 右边 -->
		  			<div class="nowrap" style="padding-top: 8px;border:0px solid red;float: right;text-align: right;text-align: left;padding-top: 8px;padding-left: 8px;_padding-left: 8px;width: 137px;_width: 130px;font-family: Arial;">
		  				<div class="single_title">
		  					货物信息
		  				</div>
		  				<div style="height: 35px;line-height: 18px;font-size:90%;-webkit-text-size-adjust:none;font-family: Arial;">
		  					<s:property value="cargoName"/><br/>
		  					<s:if test="item.type!=1">
		  						<s:property value="grossWeight"/>KGS/<s:property value="volume"/>CBM
		  					</s:if>
		  					<s:else>
		  						<s:property value="boxAmount"/>
		  					</s:else>
		  				</div>
		  				<div class="single_title" style="padding-top: 4px;">
		  					委托方
		  				</div>
		  				<div style="height: 37px;padding-top: 4px;font-size:90%;-webkit-text-size-adjust:none;" >
		  					<s:property value="client1.nickname"/>
		  				</div>
		  				
		  				<div class="single_title" style="padding-top: 4px;">
		  					应付款
		  				</div>
		  				<div class="work_fees">
		  					<s:iterator value="option12" status="sta">
		  						<div>
			  						<s:if test="#sta.index<4">
				  						<span><s:property value="fee.name_zh"/></span>
				  					
				  						<span style="font-family: Arial;"><s:property value="currency.type"/></span>
				  						<span style="font-family: Arial;"><s:property value="money"/></span>
			  						</s:if>
		  						</div>
		  						<s:if test="option12.size()>4 && #sta.index==4">
		  							<div>......</div>
		  						</s:if>
		  					</s:iterator>
		  				</div>
		  			</div>
		  		</s:if>
		  		
		  		<s:elseif test="item.type==4 || item.type==6 || item.type==7 || item.type==8">
		  		    <!-- 左边 -->
		  			<div style="float: left;text-align: left;padding-left: 24px;width: 130px;padding-top: 8px;border: 0px solid red">
		  				<s:if test="item.type==4">
			  				<div class="single_title" style="border: 0px solid red">
			  					出口国&nbsp;&nbsp;
			  					<s:if test="option16 !=null">
			  						<s:if test="option3==1">ETD</s:if>
			  						<s:date format="MM/dd" name="option16"/>
			  					</s:if>
			  				</div>
			  				<div style="height: 35px;padding-top: 4px;font-size:90%;-webkit-text-size-adjust:none;border: 0px solid red">
			  					<s:property value="expressExportCountry.fullname"/>
			  				</div>
			  				<div class="single_title" style="border: 0px solid red">
			  					进口国&nbsp;&nbsp;
			  					<s:if test="option17 !=null">
			  						<s:if test="option4==1">ETA</s:if>
			  						<s:date format="MM/dd" name="option17"/>
			  					</s:if>
			  				</div>
			  				<div style="height: 37px;padding-top: 4px;font-size:90%;-webkit-text-size-adjust:none;border: 0px solid red">
			  					<s:property value="expressImportCountry.fullname"/>
			  				</div>
			  				</s:if>
		  				<s:else>
		  					<div class="single_title" style="border: 0px solid red">
			  					作业地
			  				</div>
			  				<div style="padding-top: 4px;font-size:90%;-webkit-text-size-adjust:none;height: 35px;border: 0px solid red">
			  				    <s:property value="pointORG.fullname"/>
			  				</div>
			  				<div style="height: 54px;_height: 63px;border: 0px solid red">
			  				</div>
		  				</s:else>
		  				<div class="single_title" style="padding-top: 4px;">
		  					应收款
		  				</div>
		  				<div class="work_fees">
		  					<s:iterator value="option11" status="sta">
		  						<div>
			  						<s:if test="#sta.index<4">
				  						<span><s:property value="fee.name_zh"/></span>
				  						
				  						<span style="font-family: Arial;"><s:property value="currency.type"/></span>
				  						<span style="font-family: Arial;"><s:property value="money"/></span>
			  						</s:if>
		  						</div>
		  						<s:if test="option11.size()>4 && #sta.index==4">
		  							<div>......</div>
		  						</s:if>
		  						
		  					</s:iterator>
		  				</div>
		  			</div>
		  			<!-- 右边 -->
		  			<div style="float: right;text-align: right;text-align: left;padding-top: 8px;padding-left: 20px;_padding-left: 20px;width: 137px;_width: 130px;border: 0px solid red">
		  				<div class="single_title" style="border: 0px solid red">
		  					货物信息
		  				</div>
		  				<div style="height: 35px;font-size:90%;-webkit-text-size-adjust:none;line-height: 18px;border: 0px solid red">
		  					<s:property value="cargoName"/><br/>
		  					<s:property value="grossWeight"/>KGS/<s:property value="volume"/>CBM
		  				</div>
		  				<div class="single_title" style="border: 0px solid red">
		  					委托方
		  				</div>
		  				<div style="height: 40px;padding-top: 4px;font-size:90%;-webkit-text-size-adjust:none;border: 0px solid red">
		  					<s:property value="client1.nickname"/>
		  				</div>
		  				<div class="single_title" style="padding-top: 3px;_padding-top: 5px;">
		  					应付款
		  				</div>
		  				<div class="work_fees">
		  					<s:iterator value="option12" status="sta">
		  						<div>
			  						<s:if test="#sta.index<4">
				  						<span><s:property value="fee.name_zh"/></span>
				  						
				  						<span style="font-family: Arial;"><s:property value="currency.type"/></span>
				  						<span style="font-family: Arial;"><s:property value="money"/></span>
			  						</s:if>
		  						</div>
		  						<s:if test="option12.size()>4 && #sta.index==4 ">
		  							<div>......</div>
		  						</s:if>
		  					</s:iterator>
		  				</div>
		  			</div>
		  		</s:elseif>
		  	</div>	
		  	
		  	<!-- 第四行 -->
		  	<div style="width: 310px;_width: 305px;text-align: left;padding-left: 24px;clear: both;height: 48px;border: 0px solid red;">
			  	<table style="width: 100%;height: 48px;padding: 0px;margin: 0px;" cellpadding="0" cellspacing="0" border="0" valign="top">
		  			<tr>
		  				<td class="single_title" height="30px"  valign="bottom">
		  					作业项目
		  				</td>
		  				<td rowspan="2" id="open_work" style="text-align: right;padding-right: 28px;height: 48px;">
				  			<a href="${pageContext.request.contextPath}/cts/workDetail?id=<s:property value="id"/>" style="text-decoration: none" target="_blank">打开订单</a>
		  				</td>
		  			</tr>
		  			<tr>
		  				<td style="text-align: left;font-size:90%;-webkit-text-size-adjust:none;" height="18px">
		  					<div style="width: 210px;_width: 200px;" class="nowrap">
			  					<s:iterator value="option13">
					  				<s:if test="option1==1">
					  					<span style="color:#52ad25;"><s:property value="item.name_zh"/>&nbsp;&nbsp;</span>
					  				</s:if>
					  				<s:else>
					  					<s:property value="item.name_zh"/>&nbsp;&nbsp;
					  				</s:else>
					  			</s:iterator>
				  			</div>
		  				</td>
		  			</tr>
		  		</table>
		  	</div>
		  	
		  	
		  	<!-- 漂浮的 -->
		  	<s:if test="employee.user.id!=#cts_userid">
		  		<div class="float_div" id="float_div_<s:property value="id"/>" style="width: 310px;_width: 305px;position:relative;border: 0px solid green;display: none;">
				  	<div id="float_div_" style="display:block;position: absolute;background: url('${pageContext.request.contextPath}/cts/images/create_user.png') no-repeat;width:114px;left:35%;bottom:-1px;_bottom:0px;color:#fff;height:27px;line-height:27px;" class="nowrap">
				  		<img src="${pageContext.request.contextPath}/cts/upload/user/<s:property value="employee.user.logoPath"/>" style="height: 25px;width: 25px;" align="left"><s:property value="employee.nickname"/>创建
				  	</div>
			  	</div>
		  	</s:if>
		  	
		</div>
	</s:iterator>
	</s:if>
	<s:else>
   		<input type="hidden" id="isLast" value="1"/>
   		<br/>
   		<div style="text-align: center;color: #999797;width: 964px;float: left;clear: both;">
   			数据显示完毕或者查询无结果
   		</div>
  	</s:else>
	
</div>
<div style="clear: both;"></div>
<script type="text/javascript">
	$(function(){
		if( $.browser.msie ){
			$(".f_div").css('padding-top','12px');
		}
	})
</script>
